package com.zzk.protect.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

/**
 * 
 * @TableName registration
 */
@TableName(value ="registration")
public class Registration {
    /**
     * Primary key ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * Case number
     */
    @TableField(value = "case_number")
    private String caseNumber;

    /**
     * Patient name
     */
    @TableField(value = "patient_name")
    private String patientName;

    /**
     * Gender
     */
    @TableField(value = "gender")
    private Integer gender;

    /**
     * ID number
     */
    @TableField(value = "id_number")
    private String idNumber;

    /**
     * Birth date
     */
    @TableField(value = "birth_date")
    private Date birthDate;

    /**
     * Age
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * Age type (year/month/day)
     */
    @TableField(value = "age_type")
    private String ageType;

    /**
     * Home address
     */
    @TableField(value = "address")
    private String address;

    /**
     * Visit date
     */
    @TableField(value = "visit_date")
    private Date visitDate;

    /**
     * Time period (AM/PM)
     */
    @TableField(value = "time_period")
    private String timePeriod;

    /**
     * Department ID
     */
    @TableField(value = "department_id")
    private Integer departmentId;

    /**
     * Doctor ID
     */
    @TableField(value = "doctor_id")
    private Integer doctorId;

    /**
     * Registration level ID
     */
    @TableField(value = "registration_level_id")
    private Integer registrationLevelId;

    /**
     * Settlement type ID
     */
    @TableField(value = "settlement_type_id")
    private Integer settlementTypeId;

    /**
     * Need medical record (Y/N)
     */
    @TableField(value = "need_medical_record")
    private String needMedicalRecord;

    /**
     * Registration time
     */
    @TableField(value = "registration_time")
    private Date registrationTime;

    /**
     * Registrar ID
     */
    @TableField(value = "registrar_id")
    private Integer registrarId;

    /**
     * Visit status
     */
    @TableField(value = "visit_status")
    private Integer visitStatus;

    /**
     * Primary key ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * Primary key ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Case number
     */
    public String getCaseNumber() {
        return caseNumber;
    }

    /**
     * Case number
     */
    public void setCaseNumber(String caseNumber) {
        this.caseNumber = caseNumber;
    }

    /**
     * Patient name
     */
    public String getPatientName() {
        return patientName;
    }

    /**
     * Patient name
     */
    public void setPatientName(String patientName) {
        this.patientName = patientName;
    }

    /**
     * Gender
     */
    public Integer getGender() {
        return gender;
    }

    /**
     * Gender
     */
    public void setGender(Integer gender) {
        this.gender = gender;
    }

    /**
     * ID number
     */
    public String getIdNumber() {
        return idNumber;
    }

    /**
     * ID number
     */
    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    /**
     * Birth date
     */
    public Date getBirthDate() {
        return birthDate;
    }

    /**
     * Birth date
     */
    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    /**
     * Age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * Age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * Age type (year/month/day)
     */
    public String getAgeType() {
        return ageType;
    }

    /**
     * Age type (year/month/day)
     */
    public void setAgeType(String ageType) {
        this.ageType = ageType;
    }

    /**
     * Home address
     */
    public String getAddress() {
        return address;
    }

    /**
     * Home address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * Visit date
     */
    public Date getVisitDate() {
        return visitDate;
    }

    /**
     * Visit date
     */
    public void setVisitDate(Date visitDate) {
        this.visitDate = visitDate;
    }

    /**
     * Time period (AM/PM)
     */
    public String getTimePeriod() {
        return timePeriod;
    }

    /**
     * Time period (AM/PM)
     */
    public void setTimePeriod(String timePeriod) {
        this.timePeriod = timePeriod;
    }

    /**
     * Department ID
     */
    public Integer getDepartmentId() {
        return departmentId;
    }

    /**
     * Department ID
     */
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    /**
     * Doctor ID
     */
    public Integer getDoctorId() {
        return doctorId;
    }

    /**
     * Doctor ID
     */
    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    /**
     * Registration level ID
     */
    public Integer getRegistrationLevelId() {
        return registrationLevelId;
    }

    /**
     * Registration level ID
     */
    public void setRegistrationLevelId(Integer registrationLevelId) {
        this.registrationLevelId = registrationLevelId;
    }

    /**
     * Settlement type ID
     */
    public Integer getSettlementTypeId() {
        return settlementTypeId;
    }

    /**
     * Settlement type ID
     */
    public void setSettlementTypeId(Integer settlementTypeId) {
        this.settlementTypeId = settlementTypeId;
    }

    /**
     * Need medical record (Y/N)
     */
    public String getNeedMedicalRecord() {
        return needMedicalRecord;
    }

    /**
     * Need medical record (Y/N)
     */
    public void setNeedMedicalRecord(String needMedicalRecord) {
        this.needMedicalRecord = needMedicalRecord;
    }

    /**
     * Registration time
     */
    public Date getRegistrationTime() {
        return registrationTime;
    }

    /**
     * Registration time
     */
    public void setRegistrationTime(Date registrationTime) {
        this.registrationTime = registrationTime;
    }

    /**
     * Registrar ID
     */
    public Integer getRegistrarId() {
        return registrarId;
    }

    /**
     * Registrar ID
     */
    public void setRegistrarId(Integer registrarId) {
        this.registrarId = registrarId;
    }

    /**
     * Visit status
     */
    public Integer getVisitStatus() {
        return visitStatus;
    }

    /**
     * Visit status
     */
    public void setVisitStatus(Integer visitStatus) {
        this.visitStatus = visitStatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Registration other = (Registration) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCaseNumber() == null ? other.getCaseNumber() == null : this.getCaseNumber().equals(other.getCaseNumber()))
            && (this.getPatientName() == null ? other.getPatientName() == null : this.getPatientName().equals(other.getPatientName()))
            && (this.getGender() == null ? other.getGender() == null : this.getGender().equals(other.getGender()))
            && (this.getIdNumber() == null ? other.getIdNumber() == null : this.getIdNumber().equals(other.getIdNumber()))
            && (this.getBirthDate() == null ? other.getBirthDate() == null : this.getBirthDate().equals(other.getBirthDate()))
            && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
            && (this.getAgeType() == null ? other.getAgeType() == null : this.getAgeType().equals(other.getAgeType()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getVisitDate() == null ? other.getVisitDate() == null : this.getVisitDate().equals(other.getVisitDate()))
            && (this.getTimePeriod() == null ? other.getTimePeriod() == null : this.getTimePeriod().equals(other.getTimePeriod()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getDoctorId() == null ? other.getDoctorId() == null : this.getDoctorId().equals(other.getDoctorId()))
            && (this.getRegistrationLevelId() == null ? other.getRegistrationLevelId() == null : this.getRegistrationLevelId().equals(other.getRegistrationLevelId()))
            && (this.getSettlementTypeId() == null ? other.getSettlementTypeId() == null : this.getSettlementTypeId().equals(other.getSettlementTypeId()))
            && (this.getNeedMedicalRecord() == null ? other.getNeedMedicalRecord() == null : this.getNeedMedicalRecord().equals(other.getNeedMedicalRecord()))
            && (this.getRegistrationTime() == null ? other.getRegistrationTime() == null : this.getRegistrationTime().equals(other.getRegistrationTime()))
            && (this.getRegistrarId() == null ? other.getRegistrarId() == null : this.getRegistrarId().equals(other.getRegistrarId()))
            && (this.getVisitStatus() == null ? other.getVisitStatus() == null : this.getVisitStatus().equals(other.getVisitStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCaseNumber() == null) ? 0 : getCaseNumber().hashCode());
        result = prime * result + ((getPatientName() == null) ? 0 : getPatientName().hashCode());
        result = prime * result + ((getGender() == null) ? 0 : getGender().hashCode());
        result = prime * result + ((getIdNumber() == null) ? 0 : getIdNumber().hashCode());
        result = prime * result + ((getBirthDate() == null) ? 0 : getBirthDate().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        result = prime * result + ((getAgeType() == null) ? 0 : getAgeType().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getVisitDate() == null) ? 0 : getVisitDate().hashCode());
        result = prime * result + ((getTimePeriod() == null) ? 0 : getTimePeriod().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getDoctorId() == null) ? 0 : getDoctorId().hashCode());
        result = prime * result + ((getRegistrationLevelId() == null) ? 0 : getRegistrationLevelId().hashCode());
        result = prime * result + ((getSettlementTypeId() == null) ? 0 : getSettlementTypeId().hashCode());
        result = prime * result + ((getNeedMedicalRecord() == null) ? 0 : getNeedMedicalRecord().hashCode());
        result = prime * result + ((getRegistrationTime() == null) ? 0 : getRegistrationTime().hashCode());
        result = prime * result + ((getRegistrarId() == null) ? 0 : getRegistrarId().hashCode());
        result = prime * result + ((getVisitStatus() == null) ? 0 : getVisitStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", caseNumber=").append(caseNumber);
        sb.append(", patientName=").append(patientName);
        sb.append(", gender=").append(gender);
        sb.append(", idNumber=").append(idNumber);
        sb.append(", birthDate=").append(birthDate);
        sb.append(", age=").append(age);
        sb.append(", ageType=").append(ageType);
        sb.append(", address=").append(address);
        sb.append(", visitDate=").append(visitDate);
        sb.append(", timePeriod=").append(timePeriod);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", doctorId=").append(doctorId);
        sb.append(", registrationLevelId=").append(registrationLevelId);
        sb.append(", settlementTypeId=").append(settlementTypeId);
        sb.append(", needMedicalRecord=").append(needMedicalRecord);
        sb.append(", registrationTime=").append(registrationTime);
        sb.append(", registrarId=").append(registrarId);
        sb.append(", visitStatus=").append(visitStatus);
        sb.append("]");
        return sb.toString();
    }
}